import request from '/@/utils/request';

export function rolesApi() {
  return {
    dataList : (params : object) =>{
      return request({
				url: '/admin/roles/data',
				method: 'post',
				data: params,
			});
    },
    delete : (params : object) =>{
      return request({
        url:'/admin/roles/delete',
        method:'post',
        data:params
      })
    },
    save:(params:object) => {
      return request({
        url:'/admin/roles/save',
        method:'post',
        data:params
      })
    },

    load:() => {
      return request({
        url:'/admin/roles/load',
        method:'post',
        data:{}
      })
    }
  }
}